import menuList from './menu'

const routerKeys = (path) => {

  let openKeys = ''
  let selectedKeys = ''

  menuList.forEach((item, i) => {
    console.log('xxxxxxx', path, item)
    item.children.forEach((sub, j) => {
      if (sub.router == path) {
        openKeys = item.key
        selectedKeys = sub.key
      }
    })
  })




  //menuList
  return {
    openKeys,
    selectedKeys,
  }
}


export default routerKeys
